import { createStore, applyMiddleware, combineReducers } from 'redux'
import count from './reducers/count'
import list from './reducers/list'
import num from './reducers/num'
import saga from 'redux-saga'
import rootSaga from './sagas2'

const createSaga = saga()

let reducer = combineReducers({
    count,
    list,
    num
})

let store = createStore(reducer, applyMiddleware(createSaga))

createSaga.run(rootSaga)

export default store